import request from '@/utils/request'

// 查询电-历史数据列表
export function listElectricityMeterHistory(query) {
  return request({
    url: '/datastatistics/electricityMeterHistory/list',
    method: 'get',
    params: query
  })
}

// 查询电-历史数据详细
export function getElectricityMeterHistory(id) {
  return request({
    url: '/datastatistics/electricityMeterHistory/' + id,
    method: 'get'
  })
}

// 新增电-历史数据
export function addElectricityMeterHistory(data) {
  return request({
    url: '/datastatistics/electricityMeterHistory',
    method: 'post',
    data: data
  })
}


// 新增电-历史数据
export function addElectricityMeterHistoryAndRealDate(data) {
  return request({
    url: '/datastatistics/electricityMeterHistory/addHisandRealtimeData',
    method: 'post',
    data: data
  })
}



// 修改电-历史数据
export function updateElectricityMeterHistory(data) {
  return request({
    url: '/datastatistics/electricityMeterHistory',
    method: 'put',
    data: data
  })
}

// 删除电-历史数据
export function delElectricityMeterHistory(id) {
  return request({
    url: '/datastatistics/electricityMeterHistory/' + id,
    method: 'delete'
  })
}
